package com.tally.server.mapper.my;

import com.tally.server.domain.Post;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Author: sy
 * @Date: 2021/4/29 23:31
 * @Description:
 */
public interface MyPostMapper {
    /**
     * 查询要展示的post
     * @return
     */
    List<Post> selectShowPosts(@Param("userId") Integer userId);

    List<Post> searchPost(@Param("keyword") String keyword, @Param("startDate") Date startDate,
                          @Param("endDate") Date endDate, @Param("userId") Integer userId);

    Post selectByPrimaryKeyWithoutBLOBs(@Param("id") String id);
}
